package com.lagou.dao;

import com.lagou.pojo.TArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArticleMapper {


    @Select("select * from t_article order by id desc limit #{since}, #{limit}")
    public List<TArticle> list(int since, int limit);

    @Select("select count(1) from t_article")
    public int totalCount();

}
